package cn.zlp.hrm.domain;

import com.baomidou.mybatisplus.enums.IdType;
import java.math.BigDecimal;
import java.util.Date;
import com.baomidou.mybatisplus.annotations.TableId;
import com.baomidou.mybatisplus.annotations.TableField;
import com.baomidou.mybatisplus.activerecord.Model;
import com.baomidou.mybatisplus.annotations.TableName;
import java.io.Serializable;

/**
 * <p>
 * 
 * </p>
 *
 * @author zlp
 * @since 2022-01-23
 */
@TableName("t_order_item")
public class OrderItem extends Model<OrderItem> {

private static final long serialVersionUID=1L;

                        @TableId(value = "id", type = IdType.AUTO)
                            private Long id;
    /**
     * 对应订单
     */
    @TableField("order_id")
                private Long orderId;
    /**
     * 价格
     */
                private BigDecimal price;
    /**
     * 数量
     */
                private Integer count;
    /**
     * 创建时间
     */
    @TableField("create_time")
                private Date createTime;
    /**
     * 秒杀场次编号,同一个课程多次发布，编号不一样
     */
    @TableField("session_number")
                private String sessionNumber;
    /**
     * 业务类型
     */
    @TableField("business_key")
                private Integer businessKey;
    /**
     * 业务id
     */
    @TableField("business_id")
                private Long businessId;
    /**
     * 业务名字
     */
    @TableField("business_name")
                private String businessName;


    public Long getId(){
            return id;
            }

        public void setId(Long id) {
            this.id = id;
            }

    public Long getOrderId(){
            return orderId;
            }

        public void setOrderId(Long orderId) {
            this.orderId = orderId;
            }

    public BigDecimal getPrice(){
            return price;
            }

        public void setPrice(BigDecimal price) {
            this.price = price;
            }

    public Integer getCount(){
            return count;
            }

        public void setCount(Integer count) {
            this.count = count;
            }

    public Date getCreateTime(){
            return createTime;
            }

        public void setCreateTime(Date createTime) {
            this.createTime = createTime;
            }

    public String getSessionNumber(){
            return sessionNumber;
            }

        public void setSessionNumber(String sessionNumber) {
            this.sessionNumber = sessionNumber;
            }

    public Integer getBusinessKey(){
            return businessKey;
            }

        public void setBusinessKey(Integer businessKey) {
            this.businessKey = businessKey;
            }

    public Long getBusinessId(){
            return businessId;
            }

        public void setBusinessId(Long businessId) {
            this.businessId = businessId;
            }

    public String getBusinessName(){
            return businessName;
            }

        public void setBusinessName(String businessName) {
            this.businessName = businessName;
            }

@Override
protected Serializable pkVal(){
            return this.id;
        }

@Override
public String toString() {
        return "OrderItem{" +
                ", id=" + id +
                ", orderId=" + orderId +
                ", price=" + price +
                ", count=" + count +
                ", createTime=" + createTime +
                ", sessionNumber=" + sessionNumber +
                ", businessKey=" + businessKey +
                ", businessId=" + businessId +
                ", businessName=" + businessName +
        "}";
        }
        }
